<div class="row">
    <div class="col-md-12">
        <section class="panel">
            <header class="panel-heading">Danh sách sản phẩm</header>
            <div id="test" ><button name="#them" class="my-scroll btn btn-primary">Test</button> </div>
            <div class="panel-body">
                <div  class="table-responsive">
                      <table class="table">
                    <tr>
                        <th>Mã sp</th>
                        <th>Tên sản phẩm</th>
                        <th>Loại SP</th>
                        <th>Mã CT</th>
                        <th>Đơn giá</th>
                        <th class="hidden-xs">Hình ảnh</th>
                        <th class="hidden-xs">Hãng sx</th>
                        <th class="hidden-xs">Mã khuyến mãi</th>
                        <th class="hidden-xs">SP nổi bật</th>
                        <th >Edit</th>
                        <th>Delete</th>
                    </tr>
                    <?php
                    foreach ($sanphams as $sp) {
                        ?>
                        <tr>
                            <td><?php echo $sp['masp'] ?></td>
                            <td><?php echo $sp['tensp'] ?></td>
                            <td><?php echo $sp['matl'] ?></td>
                            <td><?php echo $sp['machitet'] ?></td>
                            <td><?php echo $sp['giaban'] ?></td>
                            <td class="hidden-xs" >
                                <div class="media-object">
                                    <img class="img-thumbnail" src="<?php echo base_url('public/images/sanpham').'/'. $sp['hinhanh']; ?>"></img>
                                </div>
                                
                            </td>
                            <td class="hidden-xs"><?php echo $sp['mahangsx'] ?></td>
                            <td class="hidden-xs"><?php echo $sp['makm'] ?></td>
                            <td class="hidden-xs"><?php echo $sp['is_noibat'] ?></td>
                            <td ><a class="btn btn-sm btn-success">Edit</a></td>
                            <td  ><a class="btn btn-sm btn-danger">Delete</a></td>
                        </tr>
                        <?php
                    }
                    ?>
                </table>
                </div>
              
            </div>
        </section>
    </div>
</div>
